package com.hackintosh.prototype.pattern.west;

import javax.swing.*;

/**
 * @description：
 * @author：twislyn
 * @date：Created in 2021/05/06
 * @modified By：
 * @version: 1.0
 */
public class SunWukong extends JPanel implements Cloneable {
    private static final long serialVersionUID = 5543049531872119328L;

    public SunWukong(){
        JLabel label = new JLabel(new ImageIcon(this.getClass().getClassLoader().getResource("Wukong.jpg")));
        this.add(label);
    }

    @Override
    public Object clone() {
        SunWukong wukong = null;
        try{
            wukong = (SunWukong) super.clone();
        }catch (CloneNotSupportedException e){
            System.out.println("拷贝悟空失败!");
        }
        return wukong;
    }
}
